const context = require.context("./", false, /\.ts$/);
let module =  context.keys().filter((item: any) => item !== "./index.ts").map((key: any) => context(key).default);
const modules: any = {};

module = module.map((Item: any) => {
  const item = new Item();
  modules[item.nameString] = item;
});

export default {
  modules,
  strict: process.env.NODE_ENV !== "production",
};
